import {createContext, RefObject , useContext} from 'react'
import { Schema } from '../types'
export const ValueContext = createContext<RefObject<Schema | undefined>>({current: undefined})
export const useValueRef = () => {
    return useContext(ValueContext)
}